package com.itheima;

public class Teacher extends Employee {
    private String subject;

    public Teacher(){

    }
    public Teacher(int id, String name, double salary, int age, String subject) {
        super(id, name, salary, age);
        this.subject = subject;
    }
    public String getSubject() {
        return subject;
    }
    public void setSubject(String subject) {
        this.subject = subject;
    }
}
//继承
